package com.xuecheng.api.media;

import com.xuecheng.api.media.model.aliyun.VodUploadRequest;
import com.xuecheng.api.media.model.aliyun.VodUploadToken;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api("媒资管理服务API")
public interface AliyunVodApi {

    @ApiOperation("获取媒资文件上传凭证")
    VodUploadToken generateUploadToken(VodUploadRequest request);

    @ApiOperation("刷新媒资文件上传凭证")
    @ApiImplicitParam(name = "videoId", value = "媒资文件的ID值", required = true, dataType = "String", paramType = "path")
    VodUploadToken refreshUploadToken(String videoId);
}
